<?php
namespace Api\Controller;

use Think\Controller;

class AdController extends CommonController
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * app启动图
     * @return [type] [description]
     */
    public function appstart()
    {
        $ios = [
            'iphone5s1' => setting('appstart_ios_iphone5s1'),
            'iphone5s2' => setting('appstart_ios_iphone5s2'),
            'iphone6s'  => setting('appstart_ios_iphone6s'),
            'iphone6sp' => setting('appstart_ios_iphone6sp'),
            'iphonex'   => setting('appstart_ios_iphonex'),
        ];

        success([
            'android' => setting('appstart_android'),
            'ios'     => $ios,
        ]);
    }
}
